﻿using KZ.Express.Resource;
using System.Data;

namespace KZ.Express.ENT
{
    public class ZoneENT : EntityBase
    {
        [Output]
        public int ZoneID { get; set; }

        [Require]
        public string ZoneCode { get; set; }

        [Require]
        public string ZoneName { get; set; }

        [NotInsertUpdate]
        public DataTable ZoneDetails { get; set; }

        [NotInsertUpdate]
        public override string Table { get { return "Zones"; } }

        /// <summary>
        /// proc_Zone_Insert
        /// </summary>
        [NotInsertUpdate]
        public override string InsertProcedure { get { return "proc_Zone_Insert"; } }

        /// <summary>
        /// proc_Zone_Insert
        /// </summary>
        [NotInsertUpdate]
        public override string UpdateProcedure { get { return "proc_Zone_Update"; } }

        /// <summary>
        /// proc_Zone_Select
        /// </summary>
        [NotInsertUpdate]
        public override string SelectProcedure { get { return "proc_Zone_Select"; } }
    }
}